import cv2

# 读取原始图像
image1 = cv2.imread('lsc_sign.jpg')
image2 = cv2.imread('piano.PNG')
# 调整图像大小为512x512像素
desired_size = (128, 128)
resized_image1 = cv2.resize(image1, desired_size)
resized_image2 = cv2.resize(image2, desired_size)

# 保存调整大小后的图像
cv2.imwrite('lsc_sign128.jpg', resized_image1)
cv2.imwrite('piano128.PNG', resized_image2)
